closeFuture

Closes the encoder asynchronously, ensuring all data is written. Closing the encoder also closes the underlying sink.

Return

A CompletableFuture that completes when the encoder has been closed. The future will complete exceptionally with an Exception if an error occurs.